<%@ page language="java" pageEncoding="ISO-8859-1"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
  <head>
    <html:base />
    
    <title><bean:message bundle="LoginResources" key="jsp.title"/></title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="">
	<meta http-equiv="description" content="">
	<link rel="stylesheet" type="text/css" href="../extjs/layout-browser.css">
	<link rel="stylesheet" type="text/css" href="../css/basic.css">
  </head>
 
  <body>
  	<div id="header"><h1><bean:message key="jsp.system.title"/></h1></div>
  	
  	<logic:present name="login_error" scope="request">
  			<font color="red"><bean:message key="jsp.alert.login.invalido"/></font><br>
  	</logic:present>
  	<logic:present name="captcha_error" scope="request">
	  		<font color="red"><bean:message key="jsp.alert.captcha.invalido"/></font>
	  		<br>
  	</logic:present>

    <html:form action="/Login/Login.do" method="POST" focus="login">
    <input type="hidden" name="secret" value="<bean:write name="secret"/>"/>

      <table border="0">
        <tr>
          <td><bean:message bundle="LoginResources" key="jsp.label.usuario"/>:</td>
          <td><html:text property="login" size="15" maxlength="25" value="" /></td>
        </tr>
        <tr>
          <td><bean:message bundle="LoginResources" key="jsp.label.senha"/>:</td>
          <td><html:password property="senha" size="11" maxlength="10" value="" /></td>
        </tr>
        <tr>
          <td></td>
          <td><!-- <bean:write name="captcha"/> -->
          		<img src="../Captcha.jpg">
          </td>
        </tr>
        <tr>
          <td><bean:message bundle="LoginResources" key="jsp.label.captcha"/>:</td>
          <td><html:text property="captcha" size="7" value="" maxlength="6" /> <!-- onkeyup="this.value = this.value.toUpperCase();" --></td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td align="center"><html:submit value="Entrar"/></td>
        </tr>
      </table>
    </html:form>

	<br>
	<a href="../Usuario/PrepareCadastrarUsuario.do">Novo usu&aacute;rio</a>
	
  </body>
</html:html>
